package com.sy.bean.allocate;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class AllocateDetail {
    @ApiModelProperty(value = "调拨明细id",hidden = true)
    int id;
    @ApiModelProperty("商品id")
    @NotNull(message = "调出仓库id不能为空")
    @Min(1)
    int goodsId;
    @ApiModelProperty("商品名称")
    String goodsName;
    @ApiModelProperty("调拨数量")
    int num;
    @ApiModelProperty("单位")
    String unit;
    @ApiModelProperty("调出仓库id")
    @NotNull(message = "调出仓库id不能为空")
    @Min(value = 1,message = "调出仓库id不能为空")
    int outId;
    @ApiModelProperty("调出仓库名称")
    String outName;
    @ApiModelProperty("调入仓库id")
    @NotNull(message = "调入仓库id不能为空")
    @Min(value = 1,message = "调出仓库id不能为空")
    int inId;
    @ApiModelProperty("调入仓库名称")
    String inName;
    @ApiModelProperty("调拨明细备注")
    String notes;
}
